WooCommerce\Facebook\AdvertiseASC\CampaignHandler B

Total Complexity 86
Dependencies 4
Dependents 0
Total lines 866
Lines of code 537
Logical lines of code 165
Comment lines 165
Methods 43
Properties 22

Methods 43

Method Rating Maintainability Complexity Lines of code
get_countries()
A
22
1 248
is_running()
A
53 13 22
get_ad_status()
S
63 9 10
get_instagram_actor_id()
S
53 6 23
__construct()
S
48 4 31
get_default_product_set_id()
S
57 4 16
get_min_daily_budget()
S
57 3 16
set_ad_status()
S
58 3 16
get_stored_data()
S
65 3 10
get_ad_daily_budget()
S
68 2 7
update_ad_status()
S
75 2 4
delete_item()
S
69 2 7
generate_ad_preview()
S
62 2 10
get_ad_message()
S
71 2 6
get_ad_preview()
S
64 2 9
update_stored_data()
S
62 1 11
create_adcreative()
S
79 1 3
create_adset()
S
75 1 4
create_campaign()
S
75 1 4
get_current_user_associated_accounts()
S
74 1 4
load()
S
70 1 6
get_insights()
S
79 1 3
is_payment_method_valid()
S
74 1 4
get_instagram_accounts()
S
64 1 10
create_ad()
S
75 1 4
update_adcreative()
S
78 1 3
get_currency()
S
82 1 3
get_insights_events()
S
80 1 3
get_allowed_min_daily_budget()
S
100 1 0
get_id()
S
100 1 0
get_adcreative_creation_params()
S
100 1 0
are_insights_available()
S
81 1 3
get_insights_spend()
S
80 1 3
get_insights_reach()
S
80 1 3
fetch_campaign()
S
79 1 3
get_campaign_type()
S
100 1 0
fetch_adset()
S
79 1 3
fetch_ad()
S
79 1 3
fetch_adcreative()
S
79 1 3
update_campaign()
S
78 1 3
update_adset()
S
78 1 3
update_ad()
S
78 1 3
get_page_backed_instagram_accounts()
S
64 1 10